from .core import (
    ndarray,
    array,
    zeros,
    ones,
    empty,
    uniform,
    float32,
    float64,
    int32,
    bool_ as bool
)

# 导入底层核心模块
try:
    from ._core import Dtype, DtypeTag
except ImportError:
    # 在文档生成等场景下忽略导入错误
    pass

# 定义模块级别名
__all__ = [
    'ndarray', 'array', 'zeros', 'ones', 'empty', 'arange',
    'float32', 'float64', 'int32', 'bool'
]

# 提供类似 NumPy 的顶级函数
def asarray(obj, dtype=None):
    return array(obj, dtype)

def from_numpy(np_arr, dtype=None):
    return array(np_arr, dtype)